<template>
  <div>
    <el-button v-permission="['admin']">管理员</el-button>
    <el-button v-permission="['teacher']">老师显示的按钮</el-button>
    <el-button v-permission="['admin','teacher']">老师和管理员显示的按钮</el-button>
    <el-button v-permission="['viewer']">浏览者显示的按钮</el-button>
    <el-button>浏览者显示的按钮</el-button>
  </div>
</template>

<script>
  export default {
    name: "Permission"
  }
</script>

<style scoped>

</style>
